package cn.broadsense.biz.dto;

import cn.broadsense.common.annotation.TreeChildren;
import cn.broadsense.common.annotation.TreeKey;
import cn.broadsense.common.annotation.TreeParentKey;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author lijian
 * @description
 * @date 2024年09月11日 上午11:47
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("规则树结构")
public class RuleTreeDto extends TreeDto implements Serializable{

    private static final long serialVersionUID = 1L;

    @TreeKey
    private Integer id;

    @TreeParentKey
    private Integer parentId;

    private String name;

    @TreeChildren
    private List<?> children;

    @ApiModelProperty("规则描述")
    private String ruleDescribe;

    @ApiModelProperty("规则编码")
    private String ruleCode;

    @ApiModelProperty("状态 0=未启用 1=启用")
    private Integer status;
    @ApiModelProperty("地图显示 0=不显示 1=显示")
    private Integer showMap;

    private String createBy;

    private Date createTime;

    private String parentName;


}
